﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SearchMemberPage1.aspx.cs" Inherits="FYPHP.SearchMember" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 207px;
        }
        .style2
        {
            width: 198px;
        }
        .style3
        {
            width: 157px;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <h2>Member Management</h2>
    <table cellpadding="3" cellspacing="3" width="722" align="center" style="border: 1px solid #aaaaaa">
<tr><td>&nbsp;IC</td><td>:</td><td class="style3"><asp:TextBox ID="txtIC" 
        runat="server"></asp:TextBox></td>
    <td>Email</td><td>:</td><td><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td></tr>

<tr><td>User Name</td><td>:</td><td class="style3"><asp:TextBox ID="txtUserName" 
        runat="server"></asp:TextBox></td>
    <td>Position</td><td>:</td><td><asp:TextBox ID="txtPosition" runat="server"></asp:TextBox></td></tr>
<tr><td colspan="6" align="center" style="border-top: 1px solid #aaaaaa">
<asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" />&nbsp;<asp:Button ID="btnReset" runat="server" Text="Reset" /></td></tr>
</table>

        <br />
 <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
         <asp:Repeater ID="ItemList" runat="server" onitemcommand="ItemList_ItemCommand">
       
<HeaderTemplate>
<table cellpadding="5" cellspacing="5" width="722" border="1px solid #ffffff" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center">
<tr style="background-color: #eee; font-weight: bold;"><td>Picture</td><td>Member Name</td><td>Age</td><td>Gender</td><td>Position</td><td>Action</td></tr>

</HeaderTemplate>

<ItemTemplate>
     <tr>
            <td align="center" width="50">
            <img src="\uploads\users\<%#DataBinder.Eval(Container.DataItem, "u_picture" ) %>" alt="" height="40px" width="40px" />
            </td>
            <td style="text-align: left"><%#DataBinder.Eval(Container.DataItem, "username" ) %></td>
            <td width="70"><%#DataBinder.Eval(Container.DataItem, "u_age" ) %></td>
            <td width="25"><%#DataBinder.Eval(Container.DataItem, "u_gender" ) %></td>
             <td width="25"><%#DataBinder.Eval(Container.DataItem, "u_position" ) %></td>
              <td><asp:Button ID="btnView" runat="server" Text="View" CommandName="ViewMember" 
        CommandArgument='<%# Eval("u_id").ToString() %>' /></td>
        </tr>
   </ItemTemplate>

   <FooterTemplate>
    </table>
    </FooterTemplate>
</asp:Repeater> 
        </asp:View>
        <asp:View ID="View2" runat="server">
        <table cellpadding="5" cellspacing="5" width="722" border="1px solid #ffffff" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center">
        <tr><td align="center"><i>No record found.</i></td></tr>
        </table>
        </asp:View>
    </asp:MultiView>
        <br />
     
 

   <asp:MultiView ID="MultiView2" runat="server">
            <asp:View ID="View3" runat="server">
            <table>
                    <tr>
                        <td>
                            <div style="margin: 0 auto; width: 650px">
                                <table border="1" cellpadding="10" cellspacing="10" 
                                    style="width: 722px; border-collapse: collapse; border-color: #aaaaaa;">
                                    <tr>
                                        <td colspan="2">
                                            <span class="style1"><strong>Personal Information</strong><asp:Label 
                                                ID="lblPID" runat="server" Text="" Visible="False"></asp:Label>
                                            </span></td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Name:</td>
                                        <td>
                                            <asp:Label ID="lblName" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style11">
                                            Gender:</td>
                                        <td class="style9">
                                            <br />
                                            <asp:Label ID="lblGender" runat="server" Text="Label"></asp:Label>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Age:</td>
                                        <td>
                                            <asp:Label ID="lblAge" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Address:</td>
                                        <td class="style4">
                                            <asp:Label ID="lblAddress" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Email:</td>
                                        <td>
                                            <asp:Label ID="lblEmail" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Phone No.:</td>
                                        <td>
                                            <asp:Label ID="lblPhoneNo" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style12">
                                            Reward Points:</td>
                                        <td>
                                            <asp:Label ID="lblRewardPoints" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
                <br />
                <asp:Button ID="btnMemberActivation" runat="server" 
                    onclick="btnMemberActivation_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnEditProfile" runat="server" onclick="btnEditProfile_Click" 
                    Text="Edit Profile" />
            </asp:View>
        </asp:MultiView>

</asp:Content>
